#!/usr/bin/env bash

main()
{
	local count=0
	while true ;
	do
		let count=count+1
		echo "count is:$count"
		sleep 2
		if [ $count -ge 1000 ] ; then break; fi
	done

	return 0
}
main || exit 1 && exit 0



